package o;

import android.content.Intent;
import com.huawei.appgallery.foundation.store.bean.user.GetPersonalInfoResBean;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import o.epq.e;

public class ekf implements IServerCallBack {
    private GetPersonalInfoResBean ˎ;

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (this.ˎ != null) {
            emi.ˋ(this.ˎ);
        } else if (ekg.ॱ().ˊ() != null) {
            emi.ˋ(ekg.ॱ().ˊ());
        }
        GetPersonalInfoResBean getPersonalInfoResBean = (GetPersonalInfoResBean) responseBean;
        if (3 == getPersonalInfoResBean.getResponseCode()) {
            Logger.e("GetPersonalInfoCallback", "net work error.");
        } else if (getPersonalInfoResBean.getResponseCode() == 0) {
            if (getPersonalInfoResBean.getRtnCode_() == 0) {
                this.ˎ = getPersonalInfoResBean;
                ekg.ॱ().ˊ(this.ˎ);
                ((cbd) fho.ˏ().ˋ("User").ॱ(cbd.class)).ˋ(new cbc(this) {
                    final /* synthetic */ ekf ॱ;

                    {
                        this.ॱ = r1;
                    }

                    public int ˎ() {
                        return this.ॱ.ˎ.ˊ();
                    }

                    public String ˏ() {
                        return this.ॱ.ˎ.ˎ();
                    }

                    public int ॱ() {
                        return this.ॱ.ˎ.ˊॱ();
                    }

                    public int ˊ() {
                        return this.ॱ.ˎ.ˋॱ();
                    }
                });
                Logger.ˎ("GetPersonalInfoCallback", " send broadcast PERSONAL_INFO_CHANGE_BROADCAST");
                ll.ˏ(ContentManager.getInstant().getContext()).ˋ(new Intent(e.ˎ));
                dzn.ॱ(getPersonalInfoResBean.ˋॱ());
            } else {
                Logger.e("GetPersonalInfoCallback", "response error=" + getPersonalInfoResBean.getResponseCode());
            }
        }
        ekr.ॱ(ekp.ˊ, Integer.valueOf(getPersonalInfoResBean.ˋ()));
    }
}
